<template>
  <div class="header">
    <div class="header-left">
      <span class="iconfont">&#xe624;</span>
    </div>
    <div class="header-input">
      输入城市/景点/游玩主题
      <span class="iconfont search-icon">&#xe633;</span>
    </div>
    <router-link class="a" to='/city'>
      <div class="header-right">
        {{this.$store.state.city}}
        <span class="iconfont down-icon">&#xe64a;</span>
      </div>
    </router-link>
  </div>
</template>

<script>
export default {
  name:'HomeHeader'
}
</script>

<style lang="stylus" scoped>
  .header
    line-height .86rem
    display flex
    background #00bcd4
    color #fff
    .header-left
      width .64rem
      float left
    .header-input
      flex 1
      background #fff
      border .1rem
      margin-top .12rem
      margin-left .2rem
      padding-left .2rem
      line-height .64rem
      height .64rem
      color #ccc
      border-radius .1rem
      .search-icon
        font-size .25rem
    .a
      color #ffffff
      .header-right
        min-width 1.04rem
        padding 0 .1rem
        float right
        text-align center
        .down-icon
          font-size .25rem
          margin-left -.04rem
</style>
